import Api from "../../request/api"

export default {
    namespaced:true,
    state:{
        rolelist:[]
    },
    mutations:{
        initRolelist(state,payload){
            state.rolelist = payload
        }
    },
    actions:{ 
        getrolelist({commit}){
            Api.rolelist().then(res=>{
                if(res.code==200){
                    commit("initRolelist",res.list)
                }
            })
        }

    } 
}